package com.czh.www.util;


import com.czh.www.gui.MsgWindow;

import javax.swing.*;
import java.awt.*;

public class GuiUtils {
    public static void showNotice(Component comp, String content) {
        JOptionPane.showMessageDialog(comp, "\n" + content + "\n");
    }

    public static void openMsgWindow(String content, String senderName, String senderHost, String ip) {
        (new MsgWindow(content, senderName, senderHost, ip)).setVisible(true);
    }
}
